package com.pdd.service;

import com.pdd.beans.Order_detail;
import com.pdd.dao.Order_detailMapper;
import lombok.Setter;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 订单详情业务接口
 */
public interface Order_detailService {

    /**
     * 添加订单详情信息
     * @param order_detail
     * @return
     */
    public boolean addOrder_detail(Order_detail order_detail);

    /**
     * 删除订单详情信息
     * @return
     */
    public boolean delOrder_detail(@Param("od_id") int od_id);

    /**
     * 修改订单详情信息
     * @param order_detail
     * @return
     */
    public boolean uplOrder_detail(Order_detail order_detail);

    /**
     * 查询所有订单详情信息
     * @return
     */
    public List<Order_detail> getOrder_detail();

    /**
     * 根据订单ID查询订单详情信息
     * @return
     */
    public Order_detail getById(int o_id);
}
